
<div id="isi5">
    <?php echo form_open('costumers/flight') ?>
    <div id="isi4">
<!--        Sekali Jalan <input type="radio" name="select" value="sekali_jalan" checked="checked" onClick="hidelayer('dateLayer');return ture;" />
        Pulang Pergi <input type="radio" name="select" value="pulang_pergi" onClick="showlayer('dateLayer');return true;" /><br /><br />-->

        Keberangkatan <br />
        <?php echo form_dropdown('from', $options, $from, "class='span3'"); ?><br />
        Kedatangan <br />
        <?php echo form_dropdown('to', $options, $to, "class='span3'"); ?><br />
        Pergi<br />
        <input id="tanggal" type="text" name="date" style="width:180px" value="<?php echo $date ?>">
       
        <!--        <div id="dateLayer" style="display:none;">
                    Pulang <br /><input type="text" name="pulang" id="datepicker2" /> <br />
                </div>-->
        <br />
       
<!--        Maskapai<br />
        <?php  form_dropdown('id_maskapai', $maskapai, $id_maskapai,"class='span3'") ?>

        <br />-->



        <?php $adult = array('1' => '1', '2' => '2', '3' => '3', '4' => '4', '5' => '5',) ?>
        <?php $child = array('0' => '0', '1' => '1', '2' => '2', '3' => '3', '4' => '4', '5' => '5',) ?>
        <?php $infant = array('0' => '0', '1' => '1', '2' => '2') ?>

        <div id="adt">Adult<font size="1"></font></div>
        <div id="chd">Child <font color="#003362" style="font-size:8px;">2>12yrs</font></div>
        <div id="inf">Infant <font color="#003362" style="font-size:8px;"><2yrs</font></div><br />
        <div id="wrapper3menu1">
            <div id="adt1"><?php echo form_dropdown('adult_post', $adult, $adult_post, "class=kcl"); ?></div>
            <div id="chd1"><?php echo form_dropdown('child_post', $child, $child_post, "class=kcl"); ?></div>
            <div id="inf1"><?php echo form_dropdown('infant_post', $infant, $infant_post, "class=kcl"); ?></div>
        </div><br /><br /><br />
        <?php echo form_submit('submit', 'Cari', "class=btn") ?><br />
    </div>
    <?php echo form_close() ?>

    <script>
        $(function() {
            $( "#datepicker1" ).datepicker({ dateFormat: 'yy-mm-dd' });
        });
        $(function() {
            $( "#datepicker2" ).datepicker({ dateFormat: 'yy-mm-dd' });
        });
    
        function showlayer(whichLayer) {
            //            alert("test");
            document.getElementById(whichLayer).style.display = 'block';
        }

        function hidelayer(whichLayer) {
            document.getElementById(whichLayer).style.display = 'none';
            //        $('input[name=pulang]').val();
            $( "#datepicker2" ).val("");
        }
    </script>
